//
//  UserCenterUrl.m
//  YXFinance
//
//  Created by uplooking on 2018/10/22.
//  Copyright © 2018年 CRLong. All rights reserved.
//

#import "UserCenterUrl.h"

@implementation UserCenterUrl

+ (UserCenterUrl *)shareInstance
{
    static UserCenterUrl *instance = nil;
    static dispatch_once_t once;
    
    dispatch_once(&once, ^{
        
        instance = [[UserCenterUrl alloc] init];
        
    });
    
    return instance;
}

- (void)initWithData{
    
    UserCenterUrl * urlModel = [UserCenterUrl shareInstance];
    
    urlModel.URL_API_VCODE = @"http://api.38ch.com/api/v104/vcode";
    urlModel.URL_API_REGISTER = @"http://api.38ch.com/api/v104/register";
    urlModel.URL_API_LOGIN = @"http://api.38ch.com/api/v104/login";
    urlModel.URL_LOGIN_CHPWD = @"http://api.38ch.com/api/v104/login/chpwd";
    urlModel.URL_LOGOUT = @"http://api.38ch.com/api/v104/logout";
    urlModel.URL_USER_EDIT = @"http://api.38ch.com/api/v104/user/edit";
    urlModel.URL_API_NEWS = @"http://api.38ch.com/api/v104/news";
    urlModel.URL_API_NEWS_DETAILS = @"http://api.38ch.com/api/v104/news/details";
    urlModel.URL_API_COMMENT_ADD = @"http://api.38ch.com/api/v104/comment/add";
    urlModel.URL_API_COMMENT_OPT = @"http://api.38ch.com//api/v104/comment/opt";
    urlModel.URL_API_COMMENT = @"http://api.38ch.com/api/v104/comment";
    urlModel.URL_API_FEEDBACK = @"http://api.38ch.com/api/v104/feedback";
    urlModel.URL_API_CONFIGURE = @"http://api.38ch.com/api/v104/configure";
    urlModel.URL_API_BANNER = @"http://api.38ch.com/api/v104/banner";
    urlModel.URL_API_TEACHER = @"http://api.38ch.com/api/v104/teacher";
    urlModel.URL_API_CONFIGURE_ENROLLS = @"http://api.38ch.com/api/v104/configure/enrolls";
    urlModel.URL_API_ACTIVITY_RULE = @"http://api.38ch.com/api/v104/activity/rule";
    urlModel.URL_API_REGISTER_SIGNUP = @"http://api.38ch.com/api/v104/register/signup";
    urlModel.URL_API_USER_INFO = @"http://api.38ch.com/api/v104/user/info";
    urlModel.URL_API_AREA = @"http://api.38ch.com/api/v104/area";
    urlModel.URL_API_TEACHER_INFO = @"http://api.38ch.com/api/v104/teacher/info";
    urlModel.URL_API_CONFIGURE_SIGNUP_FORM_TIPS = @"http://api.38ch.com/api/v104/configure/signup_form_tips";
}

- (void)initWithDictionary:(NSDictionary *)dictionary{
    
    UserCenterUrl * urlModel = [UserCenterUrl shareInstance];
    
    urlModel.URL_API_VCODE = dictionary[@"vcode"];
    urlModel.URL_API_REGISTER = dictionary[@"register"];
    urlModel.URL_API_LOGIN = dictionary[@"login"];
    urlModel.URL_LOGIN_CHPWD = dictionary[@"login_chpwd"];
    urlModel.URL_LOGOUT = dictionary[@"logout"];
    urlModel.URL_USER_EDIT = dictionary[@"user_edit"];
    urlModel.URL_API_NEWS = dictionary[@"news"];
    urlModel.URL_API_NEWS_DETAILS = dictionary[@"news_info"];
    urlModel.URL_API_COMMENT_ADD = dictionary[@"comment_add"];
    urlModel.URL_API_COMMENT_OPT = dictionary[@"comment_opt"];
    urlModel.URL_API_COMMENT = dictionary[@"comment"];
    urlModel.URL_API_FEEDBACK = dictionary[@"feedback"];
    urlModel.URL_API_CONFIGURE = dictionary[@"configure"];
    urlModel.URL_API_BANNER = dictionary[@"banner"];
    urlModel.URL_API_TEACHER = dictionary[@"teacher"];
    urlModel.URL_API_CONFIGURE_ENROLLS = dictionary[@"configure_enrolls"];
    urlModel.URL_API_ACTIVITY_RULE = dictionary[@"activity_rule"];
    urlModel.URL_API_REGISTER_SIGNUP = dictionary[@"signup"];
    urlModel.URL_API_USER_INFO = dictionary[@"user_info"];
    urlModel.URL_API_AREA = dictionary[@"area"];
    urlModel.URL_API_TEACHER_INFO = dictionary[@"teacher_info"];
    urlModel.URL_API_CONFIGURE_SIGNUP_FORM_TIPS = dictionary[@"configure_signup_form_tips"];
}

@end
